<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/category.css">
  <title>乐淘商城-分类页</title>
</head>

<body>
  <div class="lt-layout">
    <!-- 头部 -->
    <div class="lt-header">
      <a href="index.html" class="mui-icon mui-icon-home home"></a>
      <h4>乐淘云购</h4>
      <a href="search.html" class="mui-icon mui-icon-search search"></a>
    </div>
    <div class="lt-main">
      <!-- 左侧一级分类导航 -->
      <div class="lt-category-left">
        <div class="mui-scroll-wrapper">
          <div class="mui-scroll">
            <!--这里放置真实显示的DOM内容-->
            <ul class="nav-box">
              <li class="current"><a href="#">导航</a></li>
              <li><a href="#">导航</a></li>
            </ul>
          </div>
        </div>
      </div>
      <!-- 右侧图标内容 -->
      <div class="lt-category-right">
        <div class="mui-scroll-wrapper">
          <div class="mui-scroll">
            <!--这里放置真实显示的DOM内容-->
            <ul class="brandLogo-box">
              <li>
                <a href="#">
                  <img src="./images/brand1.png" alt="">
                  <p>耐克</p>
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="lt-footer">
      <ul>
        <li><a href="index.html"><span class="mui-icon mui-icon-home"></span>首页</a></li>
        <li class="current"><a href="category.html"><span class="mui-icon mui-icon-list"></span>分类页</a></li>
        <li><a href="cart.html"><span class="mui-icon mui-icon-star"></span>购物车</a></li>
        <li><a href="user.html"><span class="mui-icon mui-icon-person"></span>用户中心</a></li>
      </ul>
    </div>
  </div>

  <!-- 一级分类模板引擎 -->
  <script type="text/html" id="tmp-nav">
    {{ each rows v i}}
      {{ if i==0 }}
        <li class="current"><a href="#" data-id="{{ v.id }}">{{ v.categoryName}}</a></li>
      {{ else }}
        <li><a href="#" data-id="{{ v.id }}">{{ v.categoryName}}</a></li>
      {{ /if }}
    {{ /each }}
  </script>

  <!-- 二级分类图标内容模板引擎 -->
  <script type="text/html" id="tmp-brandLogo">
    {{ each rows v i}}
      <li>
        <a href="#">
          <img src="{{ v.brandLogo }}" alt="">
          <p>{{ v.brandName }}</p>
        </a>
      </li>
    {{ /each }}
  </script>

  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./js/comment.js"></script>
  <script src="./js/category.js"></script>
</body>

</html>